home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / pgm_util / sealit / wizard / winexamp / winexamp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-07  |  1.8 KB  |  62 lines

  1. // Kustom Magic Software, Copyright (c) 1995, Ralph Krausse
  2. // File Created on 1/7/96 11:02:00 AM
  3.  
  4. #include <stdlib.h>
  5. #include <direct.h>
  6. #include <string.h>
  7.  
  8. #define IDM_ABOUT         100
  9. #define IDM_SHOWINFO      101
  10.  
  11. //This struct is what gets passed to the functions 
  12. //declared below. All fields must be filled out
  13.  
  14. typedef struct tagAppInfo  
  15. {
  16.      int bOverWriteSeal;      // flag to over-write current seal
  17.      char szMagicString[20];  // magic string, this string detects the seal if there is one
  18.      char szAppName[260];     // Your magic string
  19. } APPINFO, *pAPPINFO, far *lpAPPINFO;
  20.  
  21. //WinExample struct.......... 
  22. typedef struct WinExample
  23. {
  24.     int bWinNT;
  25.     int bWin95;
  26.     int bWin31;
  27.     long  dtExpirationDate;
  28.     char szCompany[60];
  29.     char szName[40];
  30.     char szMagicString[20];
  31. }WINEXAMPLE;
  32.  
  33.  
  34. typedef struct tagVersion
  35. {
  36.      int iMajor;  // Major version
  37.      int iMinor;  // Minor version
  38.      int iPatch;  // patch version
  39.      int bBeta;   // is version a beta?
  40. } VERSION,*pVERSION,far *lpVERSION;
  41.  
  42. /******************
  43. * Declarations... *
  44. ******************/
  45.  
  46. void GetSealError (int wErr,char *szErrorString);
  47. int ValidateApplication (lpAPPINFO lpAppInfo, int wSealBufferLen, void *vpSealBuffer);
  48. int SealApplication(lpAPPINFO lpAppInfo, int wBufferLen);
  49. int InitializeBuffer(int wLen);
  50. void SaveInt(int wValue);
  51. void SaveLong(long lValue);
  52. void SaveString(char *szValue,int wLen);
  53. void DeInitializeBuffer(void);
  54. void GetAPIVersion(lpVERSION lpVersion);
  55.  
  56. int PASCAL WinMain(HINSTANCE, HINSTANCE, LPSTR, int);
  57. BOOL InitApplication(HINSTANCE);
  58. BOOL InitInstance(HINSTANCE, int);
  59. LRESULT FAR PASCAL MainWndProc(HWND, UINT, WPARAM, LPARAM); 
  60. BOOL FAR PASCAL About(HWND, WORD, WPARAM, LPARAM); 
  61. BOOL InitValidation(void);
  62.